﻿using Mengsk.ProxyDelivery.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mengsk.ProxyDelivery.Service.Delivery
{
    class YZXBComputer : IDeliveryMoneyComputer
    {
        public bool Accept(OrderPopPayType payType, string deliveryCompany)
        {
            return payType == OrderPopPayType.ONLINE && deliveryCompany.Contains("小包");
        }

        public float ComputeMoney(OrderPopPayType payType, string deliveryCompany, double weight, string receiverAddress)
        {
            return 4F;
        }
    }
}
